Skip to content

Fix #14487: FP duplicateBranch with empty macro#8481

Merged
ludviggunne merged 2 commits intocppcheck-opensource:mainfrom
ludviggunne:14487
Apr 27, 2026
Merged

Fix #14487: FP duplicateBranch with empty macro#8481
ludviggunne merged 2 commits intocppcheck-opensource:mainfrom
ludviggunne:14487

Conversation

@ludviggunne
Copy link
Copy Markdown
Collaborator

My reasoning here is that a single semicolon most likely is a result of an empty macro expansion. I can't think of a case where one would put a single semicolon where it would make sense to warn.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can live with the false negatives when no such macro is used.

@ludviggunne ludviggunne merged commit b9513d3 into cppcheck-opensource:main Apr 27, 2026
78 of 82 checks passed
@ludviggunne ludviggunne deleted the 14487 branch April 27, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants